<?php
/**
 * Created by PhpStorm.
 * User: huynguyen
 * Date: 10/2/14
 * Time: 9:49 PM
 */

namespace Common\Models\Videos;


class VideoGroupLink extends \Phalcon\Mvc\Model
{
    protected $video_id;

    protected $video_group_id;


    public function getSource()
    {
        return 'video_group_link';
    }

    public function initialize()
    {
        $this->setSource('video_group_link');

        $this->belongsTo('video_id','Common\Models\Videos\Video','id',array(
            'alias'     =>  'video'
        ));

        $this->belongsTo('video_group_id','Common\Models\Videos\VideoGroup','id',array(
            'alias'     =>  'videoGroup'
        ));
    }

    /**
     * @param mixed $video_group_id
     */
    public function setVideoGroupId($video_group_id)
    {
        $this->video_group_id = $video_group_id;
    }

    /**
     * @return mixed
     */
    public function getVideoGroupId()
    {
        return $this->video_group_id;
    }

    /**
     * @param mixed $video_id
     */
    public function setVideoId($video_id)
    {
        $this->video_id = $video_id;
    }

    /**
     * @return mixed
     */
    public function getVideoId()
    {
        return $this->video_id;
    }


} 